package top.revery.api.api.adv;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.revery.api.config.UserPageData;
import top.revery.api.entity.other.BaseAdv;
import top.revery.api.entity.payWallet.BaseLogUser;

import java.util.List;
import java.util.Map;


/**
 * @author denghao
 * @title
 * @package
 * @date 2019/12/21 9:15
 */
@RequestMapping("/api_adv")
public interface IAdvApi {

    //保存广告
    @PostMapping("/save")
    public BaseAdv save(@RequestBody BaseAdv baseAdv) throws Exception;

    //分页多条件查询所有
    @PostMapping("/getList")
    public UserPageData getList(@RequestParam(value = "pageNum") int pageNum, @RequestParam(value = "pageSize") int pageSize,
                                @RequestBody Map map);

}
